package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 通知对象 spff_notifications
 * 
 * @author xjj
 * @date 2025-09-11
 */
public class SpffNotifications extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 通知ID */
    private Long id;

    /** 接收用户ID */
    @Excel(name = "接收用户ID")
    private Long userId;

    /** 发送用户ID */
    @Excel(name = "发送用户ID")
    private Long senderId;


    @Excel(name = "接收用户名")
    private String toNickname;

    /** 发送用户ID */
    @Excel(name = "发送用户名")
    private String fromNickname;
    @Excel(name = "发送用户头像")
    private String fromAvatar;

    /** 通知类型:1-点赞,2-评论,3-关注,4-分享 */
    @Excel(name = "通知类型:1-点赞,2-评论,3-关注,4-分享")
    private Integer type;

    /** 通知内容 */
    @Excel(name = "通知内容")
    private String content;

    /** 相关ID(视频ID/评论ID) */
    @Excel(name = "相关ID(视频ID/评论ID)")
    private Long relatedId;


    /** 是否已读 */
    @Excel(name = "是否已读")
    private Integer isRead;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date createdAt;

    public String getToNickname() {
        return toNickname;
    }

    public void setToNickname(String toNickname) {
        this.toNickname = toNickname;
    }

    public String getFromNickname() {
        return fromNickname;
    }

    public void setFromNickname(String fromNickname) {
        this.fromNickname = fromNickname;
    }

    public String getFromAvatar() {
        return fromAvatar;
    }

    public void setFromAvatar(String fromAvatar) {
        this.fromAvatar = fromAvatar;
    }


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setSenderId(Long senderId) 
    {
        this.senderId = senderId;
    }

    public Long getSenderId() 
    {
        return senderId;
    }

    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setRelatedId(Long relatedId) 
    {
        this.relatedId = relatedId;
    }

    public Long getRelatedId() 
    {
        return relatedId;
    }

    public void setIsRead(Integer isRead) 
    {
        this.isRead = isRead;
    }

    public Integer getIsRead() 
    {
        return isRead;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("senderId", getSenderId())
            .append("type", getType())
            .append("content", getContent())
            .append("relatedId", getRelatedId())
            .append("isRead", getIsRead())
            .append("createdAt", getCreatedAt())
                .append("toNickname", getToNickname())
                .append("fromNickname", getFromNickname())
                .append("fromAvatar", getFromAvatar())
            .toString();
    }
}
